package com.fast.framework.utils;

import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Component;

/**
 * 
 * @Description:系统参数
 * @author ZhouHuan 18774995071@163.com
 * @time 2019-04-15 17:35
 * @version V1.0 
 的
 *
 */
@Component
public class SysConfig {
	
	public String getVersion() {
		return Global.getVersion();
	}
	
	public String getTitle() {
		return Global.getTitle();
	}
	
	public String getCompany() {
		return Global.getCompany();
	}
	
	public String getCopyrightYear() {
		return Global.getCopyrightYear();
	}
	
	public String getIPC() {
		return Global.getIPC();
	}
	
	public String getDvVersion() {
		return Global.getVersion()+"-"+Global.getDvVersion();
	}
	
	public String getSysLang() {
		return LocaleContextHolder.getLocale().toString();
	}
	
	public String getKeyToValue(String key) {
		return Global.getDbKey(key);
	}

	public String getKey(String key) {
		return Global.getDbKey(key);
	}
	public String getKey(String key,String default0) {
		return Global.getDbKey(key,default0);
	}

	public boolean optimize(){
		return Global.optimize();
	}
}
